//
//  FirstModel.m
//  Cook
//
//  Created by 0.0 on 15-4-16.
//  Copyright (c) 2015年 dingjun. All rights reserved.
//

#import "FirstModel.h"

@implementation FirstModel

- (void)dealloc
{
    [_officeId release];
    [_officeName release];
    [_diseaseNames release];
    [_imagePath release];
    
    [super dealloc];
}

- (instancetype)init
{
    self = [self initWithOfficeId:nil officeName:nil diseaseNames:nil imagePath:nil];
    
    return self;
}

- (instancetype)initWithOfficeId:(NSString *)officeId officeName:(NSString *)officeName diseaseNames:(NSString *)diseaseNames imagePath:(NSString *)imagePath
{
    self = [super init];
    
    if (self) {
        self.officeId = officeId;
        self.officeName = officeName;
        self.diseaseNames = diseaseNames;
        self.imagePath = imagePath;
    }
    
    return self;
}

+ (FirstModel *)firstModelWithOfficeId:(NSString *)officeId officeName:(NSString *)officeName diseaseNames:(NSString *)diseaseNames imagePath:(NSString *)imagePath
{
    FirstModel *model = [[FirstModel alloc] initWithOfficeId:officeId officeName:officeName diseaseNames:diseaseNames imagePath:imagePath];
    return [model autorelease];
}


@end
